package com.zmn.oms.dubbo.interfaces.conf.redistribute;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.common.dio.conf.redistribute.RedistributeConfQuery;
import com.zmn.oms.common.dro.conf.redistribute.RedistributeReasonConfDRO;
import com.zmn.oms.common.dro.conf.redistribute.RedistributeReasonSimpleConfDRO;
import io.swagger.annotations.ApiOperation;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author sunlife
 * @date:2022/5/9 下午6:48
 * description: 改派配置业务类
 */
public interface RedistributeConfListRemoteService {
    /**
     * 获取所有改派缘由
     *
     * @return 获取所有改派缘由
     */
    @ApiOperation(value = "获取所有改派缘由")
    ResponseDTO<List<RedistributeReasonSimpleConfDRO>> listAllConf(RedistributeConfQuery query);

    /**
     * 获取所有改派缘由
     *
     * @return 获取所有改派缘由
     */
    @ApiOperation(value = "根据ID获取改派缘由")
    ResponseDTO<RedistributeReasonConfDRO> getById(@Valid @NotNull(message = "改派缘由ID不能为空") Integer reasonId);

}
